package com.github.niefy.modules.wx.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.github.niefy.common.utils.Json;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 模版消息发送完成结果
 */
@Data
@Builder
@TableName("wx_template_msg_finish_log")
public class TemplateMsgFinishLog implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.INPUT)
    private Long msgId;
    private String appid;
    private String fromUser;
    private LocalDateTime createTime;
    private String statusResult;

    @Override
    public String toString() {
        return Json.toJsonString(this);
    }

}
